﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TouchPoint.Engine.Attributes
{
    /// <summary>
    /// Test特性标记
    /// </summary>
    [AttributeUsage(
        AttributeTargets.Constructor|
        AttributeTargets.Method,AllowMultiple = false)]
    public class TestAttribute:Attribute
    {
        /// <summary>
        /// 指示当前方法的编码者
        /// </summary>
        public string Author { get; set; }
        /// <summary>
        /// 标识当前方法的测试状态
        /// </summary>
        public bool IsPass { get; set; }
        /// <summary>
        /// 标识当前方法的测试者
        /// </summary>
        public string Tester { get; set; }
        /// <summary>
        /// 标识错误位置(比如Engine.TestAttribute类)
        /// </summary>
        public string Position { get; set; }
        /// <summary>
        /// 标识错误行号(比如16)
        /// </summary>
        public int Line { get; set; }
    }
}
